{@ 'Roles' | {headTitle}}

{@ 'tabs' | {placeholder} | -captureStart}
<ul>
    <li><a href=""><span>Users</span></a></li>
    <li class="active-tab"><a href=""><span>Roles</span></a></li>
</ul>
{@ 'tabs' | {placeholder} | -captureEnd}

<h1>Role Management</h1>
<p>Create and modify roles and their properties.</p>

<form class="mz-dl-form" method="{=|{new.getMethod}}" action="{=|{new.getAction}}" enctype="{=|{new.getEncType}}">
<fieldset>
    <legend>Create a role:</legend>
    <dl>
        <dt>
            <label for="{=|{new.roleId.getId}}">
                {=|{new.roleId.getLabel}}
                {=|{new.roleId.renderErrors}}
            </label>
        </dt>
        <dd>
            {=|{new.roleId.renderViewHelper}}
        </dd>
    </dl>
    <dl>
        <dt>
            <label for="{=|{new.description.getId}}">
                {=|{new.description.getLabel}}
                {=|{new.description.renderErrors}}
            </label>
        </dt>
        <dd>
            {=|{new.description.renderViewHelper}}
        </dd>
        <dd>
            {=|{new.create.renderViewHelper}}
        </dd>
    </dl>
</fieldset>
</form>

<form class="mz-dl-form" method="{=|{edit.getMethod}}" action="{=|{edit.getAction}}" enctype="{=|{edit.getEncType}}">
<fieldset>
    <legend>Modify role:</legend>
    <dl>
        <dt><label for="{=|{edit.roles.getId}}">{=|{edit.roles.getLabel}}</label></dt>
        <dd>
            {=|{edit.roles.renderViewHelper}}{=|{edit.select.renderViewHelper}}
        </dd>
    </dl>
    <dl>
        <dt><label for="{=|{edit.description.getId}}">{=|{edit.description.getLabel}}</label></dt>
        <dd>{=|{edit.description.renderViewHelper}}</dd>
    </dl>
    <dl>
        <dt><label for="{=|{edit.parents.getId}}">{=|{edit.parents.getLabel}}</label></dt>
        <dd>
            {=|{edit.parents.renderViewHelper}}
        </dd>
    </dl>
    <dl>
        <dt><label>Actions</label></dt>
        <dd>
            {=|{edit.commit.renderViewHelper}} {=|{edit.delete.renderViewHelper}}
        </dd>
    </dl>
</fieldset>

</form>